﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Diagnostics;
using System.Windows.Forms;

namespace HotelSoft.HotelManagement_GUI
{
    public partial class frmMain_Quanly : Form
    {
        Double temp = 1;
        public frmMain_Quanly()
        {
            InitializeComponent();
        }

        private void frmMain_Quanly_Load(object sender, EventArgs e)
        {
            timer1.Enabled = true;
            nvPannel.Enabled = true;
            nvPannel.CanCollapse = false;
            nvPannel.Expanded = true;
        }

        private void btnClose_Click(object sender, EventArgs e)
        {
            Application.Exit();
        }

        private void btnLogout_Click(object sender, EventArgs e)
        {
            this.Close();
        }

        private void btnChangePass_Click(object sender, EventArgs e)
        {
            frmChangePassword fr = new frmChangePassword();
            fr.ShowDialog();
        }

        private void btnChangepass_Click(object sender, DevComponents.DotNetBar.ClickEventArgs e)
        {
            frmChangePassword fr = new frmChangePassword();
            fr.ShowDialog();
        }

        private void btnInfo_Click(object sender, DevComponents.DotNetBar.ClickEventArgs e)
        {
            frmInfo fr = new frmInfo();
            fr.ShowDialog();
        }

        private void btnLogout_Click(object sender, DevComponents.DotNetBar.ClickEventArgs e)
        {
            this.Close();
        }

        private void btnClose_Click(object sender, DevComponents.DotNetBar.ClickEventArgs e)
        {
            Application.Exit();
        }

        private void lklQLPhong_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
        {
            frmQuanly_PHONG fr = new frmQuanly_PHONG();
            fr.ShowDialog();
        }

        private void lklQLLoaiPhong_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
        {
            frmQuanly_LOAIPHONG fr = new frmQuanly_LOAIPHONG();
            fr.ShowDialog();
        }

        private void lklQL_KH_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
        {
            frmQuanly_NHANVIEN fr = new frmQuanly_NHANVIEN();
            fr.ShowDialog();
        }

        private void lklKhachHang_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
        {
            frmQuanly_KHACHHANG frm = new frmQuanly_KHACHHANG();
            frm.ShowDialog();
        }

        private void lklSearch_KhachHang_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
        {
            frmTraCuu_KhachHang frm = new frmTraCuu_KhachHang();
            frm.ShowDialog();
        }

        private void lklSearch_Phong_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
        {
            frmTraCuu_Phong frm = new frmTraCuu_Phong();
            frm.ShowDialog();
        }

        private void lklBaocao_thang_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
        {
            frmBaoCaoTheoLoai f = new frmBaoCaoTheoLoai(0);
            f.ShowDialog();
        }

        private void lklBaocao_Quy_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
        {
            frmBaoCaoTheoLoai f = new frmBaoCaoTheoLoai(1);
            f.ShowDialog();
        }

        private void lklBaocao_nam_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
        {
            frmBaoCaoTheoLoai f = new frmBaoCaoTheoLoai(2);
            f.ShowDialog();
        }

        private void lklSearch_KH_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
        {
            frmTraCuu_NhanVien frm = new frmTraCuu_NhanVien();
            frm.ShowDialog();
        }

        private void btnHelp_Click(object sender, DevComponents.DotNetBar.ClickEventArgs e)
        {
            Process.Start("HuongDan.chm");
        }

        private void timer1_Tick(object sender, EventArgs e)
        {
            this.Opacity = this.Opacity + 0.1;
            if (this.Opacity == temp)
                timer1.Enabled = false;
        }

        private void lklHD_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
        {
            frmQuanly_HOADONTHANHTOAN frm = new frmQuanly_HOADONTHANHTOAN();
            frm.ShowDialog();
        }

        private void lklSearchHD_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
        {
            frmHoadonThanhToan frm = new frmHoadonThanhToan();
            frm.ShowDialog();
        }

        private void lklPhieuDK_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
        {
            frmQuanly_PHIEUDK frm = new frmQuanly_PHIEUDK();
            frm.ShowDialog();
        }

        private void lklKhachSan_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
        {
            frmCapnhat_THONGTINKHACHSAN frm = new frmCapnhat_THONGTINKHACHSAN();
            frm.ShowDialog();
        }

        private void bubbleButton1_Click(object sender, DevComponents.DotNetBar.ClickEventArgs e)
        {
            frmQuanly_HESO_TILE frm = new frmQuanly_HESO_TILE();
            frm.ShowDialog();
        }
    }
}
